package org.example.cloud.payment.service;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.stereotype.Service;

@Service
public class PaymentService {

    @HystrixCommand
    public void print(){
        System.out.println("执行开始--print");
        System.out.println(Thread.currentThread().getName()+"--print");
        System.out.println("执行结束--print");
    }

}
